import datetime
import time
timeStamp = 1389499600 
dateArray = datetime.datetime.utcfromtimestamp(timeStamp)
threeDayAgo = dateArray - datetime.timedelta(days = 3)
print threeDayAgo
